package org.budo.beetl.function;

import java.util.Arrays;
import java.util.Locale;

import org.beetl.core.Context;
import org.beetl.core.Function;

import lombok.extern.slf4j.Slf4j;

/**
 * @author limingwei
 */
@Slf4j
public class I18nFunction implements Function {
    @Override
    public Object call(Object[] params, Context context) {
        Locale locale = Locale.getDefault();
        log.info("#15 params=" + Arrays.toString(params) + ", context=" + context + ", locale=" + locale);

        return params[0];
    }
}